home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMXULTextboxElement.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  10KB  |  248 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMXULTextboxElement.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMXULTextboxElement_h__
  6. #define __gen_nsIDOMXULTextboxElement_h__
  7.  
  8.  
  9. #ifndef __gen_nsIDOMXULLabeledControlEl_h__
  10. #include "nsIDOMXULLabeledControlEl.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMHTMLInputElement; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIDOMXULTextBoxElement */
  21. #define NS_IDOMXULTEXTBOXELEMENT_IID_STR "71135b6c-294e-4634-a8e4-a72398f1e72a"
  22.  
  23. #define NS_IDOMXULTEXTBOXELEMENT_IID \
  24.   {0x71135b6c, 0x294e, 0x4634, \
  25.     { 0xa8, 0xe4, 0xa7, 0x23, 0x98, 0xf1, 0xe7, 0x2a }}
  26.  
  27. class NS_NO_VTABLE nsIDOMXULTextBoxElement : public nsIDOMXULControlElement {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMXULTEXTBOXELEMENT_IID)
  31.  
  32.   /* readonly attribute nsIDOMNode inputField; */
  33.   NS_IMETHOD GetInputField(nsIDOMNode * *aInputField) = 0;
  34.  
  35.   /* readonly attribute long textLength; */
  36.   NS_IMETHOD GetTextLength(PRInt32 *aTextLength) = 0;
  37.  
  38.   /* attribute long maxLength; */
  39.   NS_IMETHOD GetMaxLength(PRInt32 *aMaxLength) = 0;
  40.   NS_IMETHOD SetMaxLength(PRInt32 aMaxLength) = 0;
  41.  
  42.   /* attribute long size; */
  43.   NS_IMETHOD GetSize(PRInt32 *aSize) = 0;
  44.   NS_IMETHOD SetSize(PRInt32 aSize) = 0;
  45.  
  46.   /* attribute long selectionStart; */
  47.   NS_IMETHOD GetSelectionStart(PRInt32 *aSelectionStart) = 0;
  48.   NS_IMETHOD SetSelectionStart(PRInt32 aSelectionStart) = 0;
  49.  
  50.   /* attribute long selectionEnd; */
  51.   NS_IMETHOD GetSelectionEnd(PRInt32 *aSelectionEnd) = 0;
  52.   NS_IMETHOD SetSelectionEnd(PRInt32 aSelectionEnd) = 0;
  53.  
  54.   /* attribute DOMString value; */
  55.   NS_IMETHOD GetValue(nsAString & aValue) = 0;
  56.   NS_IMETHOD SetValue(const nsAString & aValue) = 0;
  57.  
  58.   /* attribute DOMString type; */
  59.   NS_IMETHOD GetType(nsAString & aType) = 0;
  60.   NS_IMETHOD SetType(const nsAString & aType) = 0;
  61.  
  62.   /* void select (); */
  63.   NS_IMETHOD Select(void) = 0;
  64.  
  65.   /* void setSelectionRange (in long selectionStart, in long selectionEnd); */
  66.   NS_IMETHOD SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd) = 0;
  67.  
  68. };
  69.  
  70. /* Use this macro when declaring classes that implement this interface. */
  71. #define NS_DECL_NSIDOMXULTEXTBOXELEMENT \
  72.   NS_IMETHOD GetInputField(nsIDOMNode * *aInputField); \
  73.   NS_IMETHOD GetTextLength(PRInt32 *aTextLength); \
  74.   NS_IMETHOD GetMaxLength(PRInt32 *aMaxLength); \
  75.   NS_IMETHOD SetMaxLength(PRInt32 aMaxLength); \
  76.   NS_IMETHOD GetSize(PRInt32 *aSize); \
  77.   NS_IMETHOD SetSize(PRInt32 aSize); \
  78.   NS_IMETHOD GetSelectionStart(PRInt32 *aSelectionStart); \
  79.   NS_IMETHOD SetSelectionStart(PRInt32 aSelectionStart); \
  80.   NS_IMETHOD GetSelectionEnd(PRInt32 *aSelectionEnd); \
  81.   NS_IMETHOD SetSelectionEnd(PRInt32 aSelectionEnd); \
  82.   NS_IMETHOD GetValue(nsAString & aValue); \
  83.   NS_IMETHOD SetValue(const nsAString & aValue); \
  84.   NS_IMETHOD GetType(nsAString & aType); \
  85.   NS_IMETHOD SetType(const nsAString & aType); \
  86.   NS_IMETHOD Select(void); \
  87.   NS_IMETHOD SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd); 
  88.  
  89. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  90. #define NS_FORWARD_NSIDOMXULTEXTBOXELEMENT(_to) \
  91.   NS_IMETHOD GetInputField(nsIDOMNode * *aInputField) { return _to GetInputField(aInputField); } \
  92.   NS_IMETHOD GetTextLength(PRInt32 *aTextLength) { return _to GetTextLength(aTextLength); } \
  93.   NS_IMETHOD GetMaxLength(PRInt32 *aMaxLength) { return _to GetMaxLength(aMaxLength); } \
  94.   NS_IMETHOD SetMaxLength(PRInt32 aMaxLength) { return _to SetMaxLength(aMaxLength); } \
  95.   NS_IMETHOD GetSize(PRInt32 *aSize) { return _to GetSize(aSize); } \
  96.   NS_IMETHOD SetSize(PRInt32 aSize) { return _to SetSize(aSize); } \
  97.   NS_IMETHOD GetSelectionStart(PRInt32 *aSelectionStart) { return _to GetSelectionStart(aSelectionStart); } \
  98.   NS_IMETHOD SetSelectionStart(PRInt32 aSelectionStart) { return _to SetSelectionStart(aSelectionStart); } \
  99.   NS_IMETHOD GetSelectionEnd(PRInt32 *aSelectionEnd) { return _to GetSelectionEnd(aSelectionEnd); } \
  100.   NS_IMETHOD SetSelectionEnd(PRInt32 aSelectionEnd) { return _to SetSelectionEnd(aSelectionEnd); } \
  101.   NS_IMETHOD GetValue(nsAString & aValue) { return _to GetValue(aValue); } \
  102.   NS_IMETHOD SetValue(const nsAString & aValue) { return _to SetValue(aValue); } \
  103.   NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
  104.   NS_IMETHOD SetType(const nsAString & aType) { return _to SetType(aType); } \
  105.   NS_IMETHOD Select(void) { return _to Select(); } \
  106.   NS_IMETHOD SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd) { return _to SetSelectionRange(selectionStart, selectionEnd); } 
  107.  
  108. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  109. #define NS_FORWARD_SAFE_NSIDOMXULTEXTBOXELEMENT(_to) \
  110.   NS_IMETHOD GetInputField(nsIDOMNode * *aInputField) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInputField(aInputField); } \
  111.   NS_IMETHOD GetTextLength(PRInt32 *aTextLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextLength(aTextLength); } \
  112.   NS_IMETHOD GetMaxLength(PRInt32 *aMaxLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxLength(aMaxLength); } \
  113.   NS_IMETHOD SetMaxLength(PRInt32 aMaxLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMaxLength(aMaxLength); } \
  114.   NS_IMETHOD GetSize(PRInt32 *aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSize(aSize); } \
  115.   NS_IMETHOD SetSize(PRInt32 aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSize(aSize); } \
  116.   NS_IMETHOD GetSelectionStart(PRInt32 *aSelectionStart) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectionStart(aSelectionStart); } \
  117.   NS_IMETHOD SetSelectionStart(PRInt32 aSelectionStart) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectionStart(aSelectionStart); } \
  118.   NS_IMETHOD GetSelectionEnd(PRInt32 *aSelectionEnd) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectionEnd(aSelectionEnd); } \
  119.   NS_IMETHOD SetSelectionEnd(PRInt32 aSelectionEnd) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectionEnd(aSelectionEnd); } \
  120.   NS_IMETHOD GetValue(nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
  121.   NS_IMETHOD SetValue(const nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } \
  122.   NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  123.   NS_IMETHOD SetType(const nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); } \
  124.   NS_IMETHOD Select(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Select(); } \
  125.   NS_IMETHOD SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectionRange(selectionStart, selectionEnd); } 
  126.  
  127. #if 0
  128. /* Use the code below as a template for the implementation class for this interface. */
  129.  
  130. /* Header file */
  131. class nsDOMXULTextBoxElement : public nsIDOMXULTextBoxElement
  132. {
  133. public:
  134.   NS_DECL_ISUPPORTS
  135.   NS_DECL_NSIDOMXULTEXTBOXELEMENT
  136.  
  137.   nsDOMXULTextBoxElement();
  138.  
  139. private:
  140.   ~nsDOMXULTextBoxElement();
  141.  
  142. protected:
  143.   /* additional members */
  144. };
  145.  
  146. /* Implementation file */
  147. NS_IMPL_ISUPPORTS1(nsDOMXULTextBoxElement, nsIDOMXULTextBoxElement)
  148.  
  149. nsDOMXULTextBoxElement::nsDOMXULTextBoxElement()
  150. {
  151.   /* member initializers and constructor code */
  152. }
  153.  
  154. nsDOMXULTextBoxElement::~nsDOMXULTextBoxElement()
  155. {
  156.   /* destructor code */
  157. }
  158.  
  159. /* readonly attribute nsIDOMNode inputField; */
  160. NS_IMETHODIMP nsDOMXULTextBoxElement::GetInputField(nsIDOMNode * *aInputField)
  161. {
  162.     return NS_ERROR_NOT_IMPLEMENTED;
  163. }
  164.  
  165. /* readonly attribute long textLength; */
  166. NS_IMETHODIMP nsDOMXULTextBoxElement::GetTextLength(PRInt32 *aTextLength)
  167. {
  168.     return NS_ERROR_NOT_IMPLEMENTED;
  169. }
  170.  
  171. /* attribute long maxLength; */
  172. NS_IMETHODIMP nsDOMXULTextBoxElement::GetMaxLength(PRInt32 *aMaxLength)
  173. {
  174.     return NS_ERROR_NOT_IMPLEMENTED;
  175. }
  176. NS_IMETHODIMP nsDOMXULTextBoxElement::SetMaxLength(PRInt32 aMaxLength)
  177. {
  178.     return NS_ERROR_NOT_IMPLEMENTED;
  179. }
  180.  
  181. /* attribute long size; */
  182. NS_IMETHODIMP nsDOMXULTextBoxElement::GetSize(PRInt32 *aSize)
  183. {
  184.     return NS_ERROR_NOT_IMPLEMENTED;
  185. }
  186. NS_IMETHODIMP nsDOMXULTextBoxElement::SetSize(PRInt32 aSize)
  187. {
  188.     return NS_ERROR_NOT_IMPLEMENTED;
  189. }
  190.  
  191. /* attribute long selectionStart; */
  192. NS_IMETHODIMP nsDOMXULTextBoxElement::GetSelectionStart(PRInt32 *aSelectionStart)
  193. {
  194.     return NS_ERROR_NOT_IMPLEMENTED;
  195. }
  196. NS_IMETHODIMP nsDOMXULTextBoxElement::SetSelectionStart(PRInt32 aSelectionStart)
  197. {
  198.     return NS_ERROR_NOT_IMPLEMENTED;
  199. }
  200.  
  201. /* attribute long selectionEnd; */
  202. NS_IMETHODIMP nsDOMXULTextBoxElement::GetSelectionEnd(PRInt32 *aSelectionEnd)
  203. {
  204.     return NS_ERROR_NOT_IMPLEMENTED;
  205. }
  206. NS_IMETHODIMP nsDOMXULTextBoxElement::SetSelectionEnd(PRInt32 aSelectionEnd)
  207. {
  208.     return NS_ERROR_NOT_IMPLEMENTED;
  209. }
  210.  
  211. /* attribute DOMString value; */
  212. NS_IMETHODIMP nsDOMXULTextBoxElement::GetValue(nsAString & aValue)
  213. {
  214.     return NS_ERROR_NOT_IMPLEMENTED;
  215. }
  216. NS_IMETHODIMP nsDOMXULTextBoxElement::SetValue(const nsAString & aValue)
  217. {
  218.     return NS_ERROR_NOT_IMPLEMENTED;
  219. }
  220.  
  221. /* attribute DOMString type; */
  222. NS_IMETHODIMP nsDOMXULTextBoxElement::GetType(nsAString & aType)
  223. {
  224.     return NS_ERROR_NOT_IMPLEMENTED;
  225. }
  226. NS_IMETHODIMP nsDOMXULTextBoxElement::SetType(const nsAString & aType)
  227. {
  228.     return NS_ERROR_NOT_IMPLEMENTED;
  229. }
  230.  
  231. /* void select (); */
  232. NS_IMETHODIMP nsDOMXULTextBoxElement::Select()
  233. {
  234.     return NS_ERROR_NOT_IMPLEMENTED;
  235. }
  236.  
  237. /* void setSelectionRange (in long selectionStart, in long selectionEnd); */
  238. NS_IMETHODIMP nsDOMXULTextBoxElement::SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd)
  239. {
  240.     return NS_ERROR_NOT_IMPLEMENTED;
  241. }
  242.  
  243. /* End of implementation class template. */
  244. #endif
  245.  
  246.  
  247. #endif /* __gen_nsIDOMXULTextboxElement_h__ */
  248.